package cn.tedu._05mvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrdersCotroller {
    @RequestMapping("/v1/order/add")
    @ResponseBody
    public String add(){
        return "创建订单成功";
    }
    @RequestMapping("/v1/order/list")
    @ResponseBody
    public String list(){
        return "查询订单列表成功";
    }
    @RequestMapping("/v1/order/delete")
    @ResponseBody
    public String delete(){
        return "更新订单成功";
    }
}
